time complexity calculation

visit shbcf.ru